Skip to content

Replace base_client.py with Fern-generated version (all new modules)#59

Merged
adeelehsan merged 2 commits intomainfrom
fix/update-base-client-with-new-modules
Apr 14, 2026
Merged

Replace base_client.py with Fern-generated version (all new modules)#59
adeelehsan merged 2 commits intomainfrom
fix/update-base-client-with-new-modules

Conversation

@adeelehsan
Copy link
Copy Markdown
Contributor

Summary

Replaces the old manually maintained base_client.py with the Fern-generated version that includes all API modules.

New modules added:

agents, agent_sessions, agent_events, agent_artifacts, agent_schedules, tools, tool_servers, hallucination_correctors, factual_consistency, instructions, metadata, queries, table_extractors, llm

Custom addition:

  • Added api_key-only authentication path for both sync and async clients (Fern only generates token and client_id/client_secret paths)

Structure change:

  • Old: direct attribute assignment (self.corpora = CorporaClient(...))
  • New: lazy @property pattern (self._corpora initialized on first access)

Test plan

  • Vectara(api_key="...") works
  • sdk_client.agents, sdk_client.tools, sdk_client.agent_sessions are available
  • sdk_client.query(), sdk_client.corpora.list() still work
  • Run SDK test suite from api_test_suite

🤖 Generated with Claude Code

adeelehsan and others added 2 commits April 14, 2026 20:40
Replaces the manually maintained base_client.py with the Fern-generated
version that includes all new API modules: agents, agent_sessions,
agent_events, agent_artifacts, agent_schedules, tools, tool_servers,
hallucination_correctors, factual_consistency, instructions, metadata,
queries, table_extractors, llm.

Adds api_key-only authentication path (Fern only generates token and
OAuth paths, but Vectara supports direct API key auth).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@adeelehsan adeelehsan merged commit 4bf0d43 into main Apr 14, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant